<?php

	require_once 'Vehingle.php';
	
	class Truck extends Vehingle {
		
		private $load;
		
		public function  __construct($maxSpeed,$model,$color,$power,$load) {
			parent::__construct($maxSpeed,$model,$color,$power,$load);
			$this->Type = "Truck";
		}
		
		public function printInfo() {
	echo "This vehingle is " . $this->getType() . "  ,maxspeed is  " . $this->maxSpeed .", model- " . $this->model . " ,her color - " . $this->color." and power-".$this->power."h.p"." load".$this->load."<br/>";
		}
		
	}
	
 	$truck=new Truck(149,"Volvo","Silver",256,20000);
 	$truck->printInfo();
?>